package com.nc.cloud.authority.server.feign;

import com.nc.cloud.api.vo.user.UserInfo;
import com.nc.cloud.authority.server.configuration.FeignConfiguration;
import com.nc.cloud.authority.server.util.user.JwtAuthenticationRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author:NCCloud
 * @Description: Feign客户端   validate 方法对应 ServiceImpl实现类
 * @Param: value:(FeignClient gate网关配置) value(RequestMapping 前端请求路径)
 * @Data:  2020/3/26 16:25
 * @return
 */
@FeignClient(value = "nc-admin",configuration = FeignConfiguration.class)
public interface IUserService {
    @RequestMapping(value = "/api/user/validate", method = RequestMethod.POST)
    public UserInfo validate(@RequestBody JwtAuthenticationRequest authenticationRequest);
}
